home *** CD-ROM | disk | FTP | other *** search
/ Shocking The Web CD-ROM / SHOCK_CD.ISO / mac / Chapter Tutorials / ch06.Media / ScaleableText / sCaLeaBl.dcr / 00020.ls < prev    next >
Encoding:
Text File  |  1996-12-03  |  724 b   |  36 lines

  1. global spriteChannel
  2.  
  3. on startMovie
  4.   puppsOn()
  5.   set spriteChannel to 10
  6. end
  7.  
  8. on idle
  9.   if the height of sprite spriteChannel = 12 then
  10.     set the height of sprite spriteChannel to the height of sprite spriteChannel * 3
  11.     set the width of sprite spriteChannel to the width of sprite spriteChannel * 3
  12.   else
  13.     set the height of sprite spriteChannel to 12
  14.     set the width of sprite spriteChannel to 6
  15.   end if
  16.   set spriteChannel to random(22)
  17. end
  18.  
  19. on puppsOn
  20.   repeat with x = 10 to 22
  21.     puppetSprite(x, 1)
  22.   end repeat
  23. end
  24.  
  25. on puppsOff
  26.   repeat with x = 10 to 22
  27.     puppetSprite(x, 0)
  28.   end repeat
  29. end
  30.  
  31. on waitfor seconds
  32.   set now to the timer
  33.   repeat while the timer < (now + (seconds * 60))
  34.   end repeat
  35. end
  36.